<table style="width: 400px" align="center" border="0" cellpadding="0" cellspacing="0" id="filetable{$row->id}">
	<thead>
		<tr class="even">
		{if $row->status neq '0'}
			{if $row->takeuser neq ''}
				<td colspan="2">{if $CURRENT_USER->userid eq $row->takeuser OR $CURRENT_USER->groupid eq 'COORD' OR $CURRENT_USER->groupid eq 'ADMIN'}[<span class="link" onclick="actionPackage('{$row->id}','release')">{$lang.release}</span>]&nbsp;&nbsp;{/if}{$lang.takedby} {$row->takeuser} {if $row->takedate neq ''} {$lang.takedon} {formatdate zone=$CURRENT_USER->timezone date=$row->takedate} {/if}</td>
			{else}
				<td colspan="2" style="text-align: right">[<span class="link" onclick="actionPackage('{$row->id}','take')">{$lang.take}</span>]</td>
			{/if}
		{else}
			<td colspan="2"><b>{$lang.unconfirmed}</b></td>
		{/if}
		</tr>
		<tr>
			{if $CURRENT_USER->userid eq $row->takeuser OR $CURRENT_USER->groupid eq 'COORD' OR $CURRENT_USER->groupid eq 'ADMIN'}
				<th colspan="2" style="text-align: left"><input type="checkbox" class="txt" name="fileid[]" id="fileid[]" value="{$row->id}" />&nbsp;{$lang.filename}: <span class="link" onclick="downloadPackage('{$row->id}')">{$row->fname}</span>&nbsp;&nbsp;[<span class="link" onclick="if (confirm('{$lang.confirmreject}')) {ldelim} actionPackage('{$row->id}','reject') {rdelim}">{$lang.reject}</span>]</th>
			{else}
				<th colspan="2" style="text-align: left">{$lang.filename}: {$row->fname}</th>
			{/if}
		</tr>
	</thead>
	
	<tbody>
		<tr class="uneven">
			<td colspan="2">
				<ul>
					{foreach from=$row->filelist item=filerow}
						<li id="filerow{$row->id}-{$filerow->id}">[{$filerow->path}]&nbsp;{$filerow->name}&nbsp;{if $CURRENT_USER->userid eq $row->takeuser}[<span class="link" onclick="if (confirm('{$lang.confirmreject}')) {ldelim} rejectFile('{$row->id}','{$filerow->id}') {rdelim}">{$lang.reject}</span>]{/if}</li>
					{/foreach}
				</ul>
			</td>
		</tr>
	</tbody>
	
	<tfoot>
		<tr>
			<th style="text-align: left">{$row->userid}</th>
			<th>{formatdate zone=$CURRENT_USER->timezone date=$row->udate}</th>
		</tr>
	</tfoot>
</table>